package com.dddd.blog.blogcommon.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 文章视图对象VO
 * @author 喵星球的大橘
 */
@Data
public class PostVO implements Serializable {
    private static final long serialVersionUID = -6922360880335866002L;

    private Long id;

    private Long authorId;

    private String authorName;

    private String title;

    private String summary;

    private Integer isOriginal;

    private String content;

    private String iconLink;

    private String tags;

    private String category;

    private Long adminId;

    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private Integer isPublic;

    private Integer readCount;

    private Integer commentCount;

    private String link;
}
